import React, {Component} from 'react';
import axios from 'axios';

class ReactCom3 extends Component {
  componentDidMount() {
    axios.get(' http://localhost:4000/arr').then((data)=>{

      console.log('mock完整对象:',data);
      console.log('mock数据:',data.data);
    })
  }

  render() {
    return (
      <div>
       用axios模拟mock请求
      </div>
    );
  }
}

export default ReactCom3;
